package test.noah.chery.service;


import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import test.noah.chery.dao.LoginDao;
import test.noah.chery.entity.Login;

@Service
public class LoginService {
	private final static Logger log= Logger.getLogger(LoginService.class);
	
	@Autowired(required=false)
	private LoginDao logindao;
	
	public Login selectLogin(Login login) {
		return logindao.getLogin(login);
	}
	public List<Login> getListBylogin() {
		return logindao.getList();
	}

}
